home *** CD-ROM | disk | FTP | other *** search
- function initFilter(objSelfilt)
- {
- //main procedure for handling everything involved with filtering
- //process
- var imageloc = new String();
- var strFilter = buildFilter(objSelfilt);
-
-
- //here the string that specifies filters will be created
- imageloc = getimage(grapinput);
-
-
- //here the text in changetxt changes (actually, the span tag)
- changetxt.innerHTML = textinput.value + imageloc
-
- //changetxt.innerText = textinput.value;
- //here everything is applied
- changetxt.style.filter = strFilter;
- div3.innerText = "SOME_ELEMENT { filter:" + strFilter + ";}";
-
- }
-
- function buildFilter(objSelfilt)
- {
- //checks which options are selected then builds the string
- var intSelindex = objSelfilt.length;
- var strmystring = new String();
- for(i=0; i<intSelindex; i++)
- {
- if(objSelfilt.options(i).selected == true)
- {
- strmystring += objSelfilt.options(i).value + " ";
- }
- }
- return strmystring;
- }
-
-
- function getimage(objgrp)
- {
- var strmystring = objgrp.value;
- if(strmystring.length > 4)
- {
- return imageloc = " <IMG SRC=" + grapinput.value + ">";
- }
- else
- {return "";}
-
- }
-
- function restFilter(objfilt)
- {
-
- objfilt.style.filter=" ";
-
-
- }
- function udv()
- {
- div3.innerText = selfilt.options(myindex).value;
- }
-